//
//  CameraAlbumViewController.m
//  IconMaster
//
//  Created by 为为 on 13-6-15.
//  Copyright (c) 2013年 为为. All rights reserved.
//

#import "CameraAlbumViewController.h"

@interface CameraAlbumViewController ()

@end

@implementation CameraAlbumViewController

- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
    self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
    if (self) {
        // Custom initialization
    }
    return self;
}

- (void)viewDidLoad
{
    [super viewDidLoad];
    // Do any additional setup after loading the view from its nib.
//	if ([cameraButton isKindOfClass:[UIGlossyButton class]]) {
//		UIGlossyButton* b = (UIGlossyButton*)cameraButton;
//		
//		[b useWhiteLabel: YES]; b.tintColor = [UIColor doneButtonColor];
//		[b setShadow:[UIColor blackColor] opacity:0.8 offset:CGSizeMake(0, 1) blurRadius: 4];
//		[b setGradientType:kUIGlossyButtonGradientTypeLinearSmoothBrightToNormal];
//		b.buttonCornerRadius = 4;
//	}
//	
//	if ([albumButton isKindOfClass:[UIGlossyButton class]]) {
//		UIGlossyButton* b = (UIGlossyButton*)albumButton;
//		
//		[b useWhiteLabel: YES]; b.tintColor = [UIColor doneButtonColor];
//		[b setShadow:[UIColor blackColor] opacity:0.8 offset:CGSizeMake(0, 1) blurRadius: 4];
//		[b setGradientType:kUIGlossyButtonGradientTypeLinearSmoothBrightToNormal];
//		b.buttonCornerRadius = 4;
//	}
	
	self.view.backgroundColor = [UIColor colorWithWhite:0 alpha:0.3];
	
	[albumButton setTitle:NSLocalizedString(@"Album", @"") forState:UIControlStateNormal];
	[cameraButton setTitle:NSLocalizedString(@"Camera", @"") forState:UIControlStateNormal];
}

- (void)didReceiveMemoryWarning
{
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

- (void)viewDidUnload {
    cameraButton = nil;
    albumButton = nil;
    [super viewDidUnload];
}
- (IBAction)cameraButtonPressed:(id)sender {
	if (self.cameraButtonPressedBlock) {
		self.cameraButtonPressedBlock(self);
	}
}

- (IBAction)albumButtonPressed:(id)sender {
	if (self.albumButtonPressedBlock) {
		self.albumButtonPressedBlock(self);
	}
}

@end
